/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.course;

import com.idenger.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 视频Entity
 * @author chenlin
 * @version 2017-12-01
 */
public class EduCourseContent extends DataEntity<EduCourseContent> {
	
	private static final long serialVersionUID = 1L;
	private String sectionId;		// 章节ID
	private String name;		// 名称
	private String score;		// 视频分值
	private String videoUrl;		// 视频路径
	
	public EduCourseContent() {
		super();
	}

	public EduCourseContent(String id){
		super(id);
	}

	@Length(min=0, max=64, message="章节ID长度必须介于 0 和 64 之间")
	public String getSectionId() {
		return sectionId;
	}

	public void setSectionId(String sectionId) {
		this.sectionId = sectionId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=10, message="视频分值长度必须介于 0 和 10 之间")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=1024, message="视频路径长度必须介于 0 和 1024 之间")
	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}
	
}